package ysc.cqnu.operdb.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.entity.Roughsketch;
import ysc.cqnu.operdb.mapper.DrawingMapper;

import java.util.ArrayList;
import java.util.List;

@Service
public class EnterDrawingInfoViewDetailsServiceImpl {
    @Autowired
    private ResultData resultData;
    @Autowired
    private DrawingMapper drawingMapper;
    @Autowired
    private Roughsketch roughsketch;
    public ResultData enterDrawingInfoViewDetailsServiceImpl(String id){
        try {
            roughsketch = drawingMapper.huatudetails(id);
            resultData.flag="enterDrawingInfoViewDetailsSuccess";
            resultData.data=roughsketch;
            return resultData;
        }
        catch (Exception e){
            resultData.flag="enterDrawingInfoViewDetailsFail";
            resultData.data=null;
            return resultData;
        }
    }
}
